import {
	axios
} from './http.js';

export const get_tallys = ({
	type = "GET"
} = {}) => {
	return axios({
		path: "/api/tally/lists",
		type: type
	});
};

export const get_summary = ({
	type = "GET",
	data = {}
} = {}) => {
	return axios({
		path: "/api/account/summary",
		type: type,
		data:data
	});
};

export const get_flows = ({
	type = "GET",
	data = {}
} = {}) => {
	return axios({
		path: "/api/tally-record/lists",
		type: type,
		data:data
	});
};

export default {
	get_tallys,
	get_summary,
	get_flows
}